//
//  LBBall.h
//  LittleBall
//
//  Created by yy on 11-11-27.
//  Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LittleBallGameManagement.h"
#import "LBPathFinder.h"

typedef enum 
{
    BALL_COLOR_RED = 0,
    BALL_COLOR_BLUE = 1,
    BALL_COLOR_GREEN = 2,
    BALL_COLOR_ORANGE = 3
}BALL_COLOR;

@interface LBBall : NSObject 
{
    UIImageView     *m_imageView;
    BOOL            m_bSelected;
    
    int             m_row;
    int             m_column;
    BALL_COLOR      m_color;
}


-(id)initWithImage:(UIImage *)image atRow:(int)row atColumn:(int)column withColor:(BALL_COLOR)color;
-(BOOL)ifTheBallIsAtRow:(int)row atColumn:(int)column;
-(BOOL)ifTheBallIsThisView:(UIView *)view;
-(BOOL)ifTheBallCoverThePoint:(CGPoint)point;

@property (retain) UIImageView *m_imageView;
@property BOOL m_bSelected;
@property int m_row;
@property int m_column;
@property BALL_COLOR m_color;

@end